Skip to content

Conversation

@antonym
Copy link
Member

@antonym antonym commented Jun 12, 2025

Summary

  • Fixed nginx service failing to start due to permission denied errors on /var/lib/nginx/logs/error.log
  • Added proper ownership setup for /var/log/nginx directory since /var/lib/nginx/logs is a symlink to it
  • Ensures nginx can write logs when running as the nbxyz user

Test plan

  • Built and tested Docker container locally
  • Verified nginx starts successfully without permission errors
  • Confirmed all services (nginx, dnsmasq, webapp) are running properly

The nginx service was failing to start due to permission denied errors
when trying to access /var/lib/nginx/logs/error.log. This directory is
a symlink to /var/log/nginx which was owned by the nginx user instead
of the nbxyz user that runs the service.

Added proper ownership setup for /var/log/nginx directory to ensure
nginx can write logs when running as the nbxyz user.
@antonym antonym merged commit 4c5e9d6 into master Jun 12, 2025
3 checks passed
@antonym antonym deleted the nginx-permission-fix branch June 12, 2025 05:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant